<template>
    <image :src='url' :mode="mode || 'widthFix'" :lazy-load="lazyLoad || false"  />
</template>

<script lang='ts' setup>
    import { computed } from "vue"

    const props = defineProps<{
        src : string,
        mode?:string,
        lazyLoad?:boolean
    }>()

    const url = computed(() => {
        return require('@/assets/images/' + props.src)
    })

</script>
